package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 ds_demaintenance_plan
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
public class DsDemaintenancePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维护计划ID */
    private Long id;
    private DsDeviceType deviceType;
    private DsDevice dsDevice;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public DsDeviceType getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(DsDeviceType deviceType) {
        this.deviceType = deviceType;
    }

    public DsDevice getDsDevice() {
        return dsDevice;
    }

    public void setDsDevice(DsDevice dsDevice) {
        this.dsDevice = dsDevice;
    }

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 维护类型 */
    @Excel(name = "维护类型")
    private String maintenanceType;

    /** 计划维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划维护日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planDate;

    /** 实际完成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际完成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completedDate;

    /** 维护计划状态 */
    @Excel(name = "维护计划状态")
    private Long status;

    /** 维护说明 */
    @Excel(name = "维护说明")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setMaintenanceType(String maintenanceType) 
    {
        this.maintenanceType = maintenanceType;
    }

    public String getMaintenanceType() 
    {
        return maintenanceType;
    }
    public void setPlanDate(Date planDate) 
    {
        this.planDate = planDate;
    }

    public Date getPlanDate() 
    {
        return planDate;
    }
    public void setCompletedDate(Date completedDate) 
    {
        this.completedDate = completedDate;
    }

    public Date getCompletedDate() 
    {
        return completedDate;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("maintenanceType", getMaintenanceType())
            .append("planDate", getPlanDate())
            .append("completedDate", getCompletedDate())
            .append("status", getStatus())
            .append("description", getDescription())
            .toString();
    }
}
